package cn.edu.gdut.deepcode.service;

import cn.edu.gdut.deepcode.domain.po.CanvasShare;
import cn.edu.gdut.deepcode.domain.po.Result;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 画布分享表 服务类
 * </p>
 *
 * @author author
 * @since 2025-04-11
 */
public interface ICanvasSharedService extends IService<CanvasShare> {
    Result<String> genSharedCode(Long canvasId, Long expire);

    Result<Long> checkSharedCodeAndGetCanvas(String sharedCode);

    void destroySharedCode(Long canvasId);

    Result<?> cancelSharing(Long canvasId);
    Result<String> getSharedCodeByCanvasId(Long canvasId) ;

}
